package com.torry.workflow.common.util;

public class RandomCodeUtil {

    /**
     * 生成6位验证码
     *
     * @return
     */
    public static String generateVerifyCode() {

        String code = String.valueOf((int) ((Math.random() * 9 + 1) * Math.pow(10, 5)));
        return code;
    }

    public static String generateRandomCodeForSixDigit() {

        String code = String.valueOf((int) ((Math.random() * 9 + 1) * Math.pow(10, 5)));
        return code;
    }

    public static void main(String[] args) {
        System.out.println(generateVerifyCode());
    }
}
